package com.xinzhi.savingpot.rminfo.controller;

import com.xinzhi.savingpot.rminfo.service.impl.RecordinfoAllImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Recordinfo")
public class RecordAllController {
    @Autowired
    RecordinfoAllImpl recordinfoAll;

    @GetMapping("/getRecordAll")
    @ApiOperation("查询违规记录")
    public BaseResponse getRecordinfo(@RequestParam("userid") int userid){

        return recordinfoAll.findRecordinfoAll(userid);
    }


}
